package br.com.agiledev.webscrum.action;

import org.jboss.seam.annotations.Begin;
import org.jboss.seam.annotations.Factory;
import org.jboss.seam.annotations.Name;

import br.com.agiledev.webscrum.entity.User;

@SuppressWarnings("serial")
@Name("userMB")
public class UserAction extends HomeAction<User> {

    @Factory("user")
    public User initProduct() {

	User user = getInstance();

	return user;
    }

    @Override
    public void setId(Object id) {
	super.setId(Long.valueOf(id.toString()));
    }
    
    @Begin
    @Override
    public void create() {
	super.create();
    }
}